//
//  UIFont+Extension.swift
//  MattressTool
//
//  Created by Coder Yang on 2023/11/19.
//

import UIKit

extension UIFont {
    
    /// 30号字体
    static var large: UIFont {
        systemFont(ofSize: 30.rpx)
    }
    
    /// 26号字体
    static var title1: UIFont {
       systemFont(ofSize: 26.rpx)
    }
    
    /// 22号字体
    static var title2: UIFont {
        systemFont(ofSize: 22.rpx)
    }
    
    /// 18号字体
    static var title3: UIFont {
        systemFont(ofSize: 18.rpx)
    }
    
    /// 16号字体
    static var body: UIFont {
        systemFont(ofSize: 16.rpx)
    }
    
    /// 16号字体
    static var subhead: UIFont {
        systemFont(ofSize: 14.rpx)
    }
    
    /// 12号字体
    static var footnote: UIFont {
        systemFont(ofSize: 12.rpx)
    }
    
    /// 10号字体
    static var caption1: UIFont {
        systemFont(ofSize: 10.rpx)
    }
    
    /// 8号字体
    static var caption2: UIFont {
        systemFont(ofSize: 8.rpx)
    }
    
    // MARK: - 粗体
    /// 16号 粗体
    static var headline: UIFont {
        boldSystemFont(ofSize: 16.rpx)
    }
}
